package cn.eoeit.mmy.controller;


import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import cn.eoeit.mmy.model.UserInfo;
import cn.eoeit.mmy.service.ISessionService;
import cn.eoeit.mmy.service.IUserService;

@Controller
@RequestMapping("/main")
public class MainController {

	@Autowired
	private IUserService userService;	
	
	@Autowired
	private ISessionService sessionService;
	
	@RequestMapping(value ="/index")
	
	public  String mainIndex(HttpServletRequest request){
		
		UserInfo userInfo=sessionService.getLoginInfo(request);
		
		return "main";
	}
	
	
}